-
Notifications
You must be signed in to change notification settings - Fork 4k
[HDInsight] imporve hdinsight test coverage #28344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves HDInsight test coverage by increasing test coverage from 40% to 90% through extensive updates to existing test scenarios and the addition of new test scenarios that provide better coverage of HDInsight functionality.
- Addition of new test scenarios for job management commands and cluster management operations
- Updates to test configuration to use more consistent parameters and remove test skips
- Addition of new configuration test scenarios for cluster creation through configuration pipelining
Reviewed Changes
Copilot reviewed 10 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
TestManagementCluster.json | New session recording file for testing management cluster operations |
HDInsightScriptActionTests.ps1 | Added Version parameter to cluster creation |
HDInsightMonitoringTests.ps1 | Changed location from "EastUS" to "East Asia" and added Version parameter |
HDInsightConfigurationTests.ps1 | Added new test function for creating clusters through configuration pipelining |
HDInsightConfigurationTests.cs | Added test method binding for configuration pipelining test |
HDInsightClusterTests.ps1 | Added job management test commands and management cluster test, removed test skipping |
HDInsightClusterTests.cs | Added test method bindings and removed Skip attributes |
HDInsightAzureMonitorTests.ps1 | Simplified test to use existing cluster instead of creating new one |
HDInsightAzureMonitorTests.cs | Removed Skip attribute from test |
Common.ps1 | Updated default parameters to use consistent test resources |
Description
Increase test coverage from 40% to 90%
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.